﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public string GetMyVideoUrl()
    {
        string videoUrl = string.Empty;
        var vid = Request.QueryString["vid"];

        if (string.IsNullOrWhiteSpace(vid))
        {
            return string.Empty;
        }
        else
        {
            //Read from web.config file
            videoUrl = ConfigurationManager.AppSettings[vid];
            return videoUrl;
        }
    }
}
